package com.springapp.mvc.entity;

import java.util.Date;

/**
 * Created by dbychkov on 29.12.2014.
 */
public class Post {
    private Long id;
    private Long userId;
    private Date dateCreated;
    private String postText;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    public String getPostText() {
        return postText;
    }

    public void setPostText(String postText) {
        this.postText = postText;
    }

    @Override
    public String toString() {
        return "Post{" +
                "id=" + id +
                ", userId=" + userId +
                ", dateCreated=" + dateCreated +
                ", postText='" + postText + '\'' +
                '}';
    }
}
